<?php
	#定义输出类型-下载命名-修改后缀-其他格式
	header("Content-type:application/vnd.ms-excel");
	header("Content-Disposition:filename=ian.xls");
	#两种方式输出-转义字符与表格
	#echo "A1\t B1\t C1\n";
	#echo "A2\t B2\t C2\n";
	#echo "A3\t B3\t C3\n";	
?>
<table width="200" border="1">
  <tr>
    <td>编号</td>
    <td>姓名</td>
    <td>年龄</td>
  </tr>
  <tr>
    <td>1</td>
    <td>Ian</td>
    <td>25</td>
  </tr>
  <tr>
    <td>2</td>
    <td>Anni</td>
    <td>22</td>
  </tr>
</table>
